<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Title</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .box {
        width: 100vw;
        height: 100vh;
        background-color: pink;
      }
      .top {
        width: 5.2vw;
        height: 9.26vh;
        background-color: red;
        margin-left: 2.6vw;
      }
      .bottom {
        margin-left: 2.6vw;
        margin-top: 9.26vh;
        width: 5.2vw;
        height: 9.26vh;
        background-color: skyblue;
      }
    </style>
    <script>
      //vh vw单位
      //vh 100vh = 100%窗口高度
      //vw 100vw = 100%窗口宽度
    </script>
  </head>
  <body>
    <div class="box">
      <div class="top"></div>
      <div class="bottom"></div>
    </div>
  </body>
</html>
